
package org.springdata.chap1.datatest;

import org.springdata.chap1.dao.HibernateDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

 
public class Demodata {

 
	public static void main(String[] args) {
		System.out.println("aaaaaa");
ApplicationContext context=new ClassPathXmlApplicationContext("Spring.xml");


HibernateDao dao=context.getBean("HibernateDao",HibernateDao.class);
System.out.println("aaaaaaaa22");
//dao.setcircle(3, "cisss");
//System.out.println(dao.getCirclename(3));
System.out.println(dao.getCirclecount());
	}

}
